/*
 * @desc:
 * @LastEditTime: 2022-10-22 11:57:54
 * @params:
 * @return::
 */
const mongoose = require("mongoose");
const baseModle = require("./base-model");
const Schema = mongoose.Schema;

const commentSchema = new mongoose.Schema({
  ...baseModle,
  content: {
    type: String,
    require: true,
  },
  author: {
    type: Schema.Types.ObjectId,
    ref: "User",
    // require: true,
  },
});

module.exports = commentSchema;
